<div class="panel panel-default panel-intro">
    <div class="panel-heading">
        {:build_heading(null, false)}
        <ul class="nav nav-tabs">
            <li class="active"><a href="#base" data-toggle="tab">客户资料</a></li>
            <li><a href="#visit" data-toggle="tab">回访列表</a></li>
            <li><a href="#receive" data-toggle="tab">申请记录</a></li>
        </ul>
    </div>
    <div class="panel-body">
        <div id="myTabContent" class="tab-content">
            <!-- 要注意 id 和 href 属性的捆绑 -->
            <!-- 客户资料 -->
            <div class="tab-pane fade active in" id="base">
                <div class="panel-body newrow prindBody">
                    <form id="add-form" class="form-horizontal form-ajax" role="form" data-toggle="validator"
                        method="POST">
                        <div class="form-group">
                            <label class="control-label col-xs-12 col-sm-2">客户名称:</label>
                            <div class="control-label col-xs-12 col-sm-2" style="text-align:left;">
                                {$row.nickname}
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="title" class="control-label col-xs-12 col-sm-2">性别:</label>
                            <div class=" control-label col-xs-12 col-sm-8" style="text-align:left;">
                                {$row.gender_text}
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="c-thumbs" class="control-label col-xs-12 col-sm-2">客户来源:</label>
                            <div class="control-label col-xs-12 col-sm-2" style="text-align:left;">
                                {$row.source.name}
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="price" class="control-label col-xs-12 col-sm-2">成交状态:</label>
                            <div class=" control-label col-xs-12 col-sm-8" style="text-align:left;">
                                {$row.deal_text}
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="price" class="control-label col-xs-12 col-sm-2">创建时间:</label>
                            <div class=" control-label col-xs-12 col-sm-8" style="text-align:left;">
                                {$row.createtime|date='Y-m-d H:i:s',###}
                            </div>
                        </div>
                    </form>
                </div>
            </div>
            <!-- 回访列表 -->
            <div class="tab-pane fade" id="visit">
                <div class="panel-body newrow prindBody">
                    <div id="toolbar1" class="toolbar">
                        {:build_toolbar('refresh')}
                    </div>
                    <table id="table1" class="table table-striped table-bordered table-hover" width="100%">
                    </table>
                </div>
            </div>
            <!-- 申请记录 -->
            <div class="tab-pane fade" id="receive">
                <div class="panel-body newrow prindBody">
                    <div id="toolbar2" class="toolbar">
                        {:build_toolbar('refresh')}
                    </div>
                    <table id="table2" class="table table-striped table-bordered table-hover" width="100%">
                    </table>
                </div>
            </div>
        </div>
    </div>
</div>